package com.itheima.Demo01.demo03;

public class GIrl extends Thread {
    @Override
    public void run() {
        while (true) {
            synchronized (Monly.lock) {
                if (Monly.monly == 100000) {
                    System.out.println("还是10万");
                }else {
                    System.out.println("基金不是10万了");
                    break;
                }
            }
        }
    }
}
